<?php
global $dktmSetting;
/**
 * Template Name: Event Template
 */
//echo "FROM default-template.php";
/**
 * Default Events Template
 * This file is the basic wrapper template for all the views if 'Default Events Template' 
 * is selected in Events -> Settings -> Template -> Events Template.
 * 
 * Override this template in your own theme by creating a file at [your-theme]/tribe-events/default-template.php
 *
 * @package TribeEventsCalendar
 * @since  3.0
 * @author Modern Tribe Inc.
 *
 */
if (!defined('ABSPATH')) {
    die('-1');
}
?>

<?php get_header(); ?>
<script type="text/javascript" src="http://js.addthisevent.com/atemay.js"></script>
<!-- AddThisEvent Settings -->
<script type="text/javascript">
addthisevent.settings({
	mouse		: false,
	css			: false,
	outlook		: {show:true, text:"Outlook Calendar"},
	google		: {show:true, text:"Google Calendar"},
	yahoo		: {show:true, text:"Yahoo Calendar"},
	ical		: {show:true, text:"iCal Calendar"},
	hotmail		: {show:true, text:"Hotmail Calendar"},
	facebook	: {show:true, text:"Facebook Calendar"}
});
</script>
<style type="text/css">
 .event_title{
        width: 100%;
        position: relative;
    }
    .event_title .tribe-events-event-cost{
        right: 4px; top: 4px;position: absolute!important;
    }
   
    #tribe-events-content .event-nav a{
        color: #0489C0;
        text-decoration: none;
    }
    #tribe-events-content .event-nav a:hover{
        color: #0489C0;
        text-decoration: underline;
    }
    .event-nav .fa-arrow-left{
        margin-right: 10px; 
    }
    .event-nav .fa-arrow-right{
        margin-left: 10px; 
    }
    .event-prev, .event-next {
        display: inline-block;
        width: 48%;
    }
    .event-prev{
        text-align: left;
    }
    .event-next{
        text-align: right;
    }
    
    
    
/* AddThisEvent (add to your existing CSS) */
.addthisevent-drop 						{line-height: 1em;width:150px;display:inline-block;position:relative;z-index:1!important;background:#0489C0;font-family:"Segoe UI",Frutiger,"Frutiger Linotype","Dejavu Sans","Helvetica Neue",Arial,sans-serif;color:#fff!important;text-decoration:none;font-size:14px;text-decoration:none;padding:8px 0px 8px 10px;font-weight: normal;}
.addthisevent-drop:hover 				{color:#fff;font-size:14px;text-decoration:none;background-color:#118FC1;font-weight: normal;}
.addthisevent-drop:active 				{top:1px;}
.addthisevent-drop .arrow 				{position:absolute;top:50%;right:15px;margin-top:-5px;}
.addthisevent-selected 					{background-color:#118FC1;}
.addthisevent_dropdown 					{width:215px;position:absolute;z-index:99999;padding:6px 0px 0px 0px;background:#fff;text-align:left;display:none;margin-top:2px;margin-left:-1px;border-top:1px solid #c8c8c8;border-right:1px solid #bebebe;border-bottom:1px solid #a8a8a8;border-left:1px solid #bebebe;-webkit-box-shadow:1px 3px 6px rgba(0,0,0,0.15);-moz-box-shadow:1px 3px 6px rgba(0,0,0,0.15);box-shadow:1px 3px 6px rgba(0,0,0,0.15);}
.addthisevent_dropdown span 			{display:block;line-height:110%;background:#fff;text-decoration:none;font-size:14px;color:#6d84b4;padding:8px 10px 9px 15px;}
.addthisevent_dropdown span:hover 		{background:#f4f4f4;color:#6d84b4;text-decoration:none;font-size:14px;}
.addthisevent span 						{display:none!important;}
.addthisevent-drop ._url,.addthisevent-drop ._start,.addthisevent-drop ._end,.addthisevent-drop ._summary,.addthisevent-drop ._description,.addthisevent-drop ._location,.addthisevent-drop ._organizer,.addthisevent-drop ._organizer_email,.addthisevent-drop ._facebook_event,.addthisevent-drop ._all_day_event {display:none!important;}
.addthisevent_dropdown .copyx 			{height:21px;display:block;position:relative;cursor:default;}
.addthisevent_dropdown .brx 			{width:180px;height:1px;overflow:hidden;background:#e0e0e0;position:absolute;z-index:100;left:10px;top:9px;}
.addthisevent_dropdown .frs 			{position:absolute;top:3px;cursor:pointer;right:10px;padding-left:10px;font-style:normal;font-weight:normal;text-align:right;z-index:101;line-height:110%;background:#fff;text-decoration:none;font-size:10px;color:#cacaca;}
.addthisevent_dropdown .frs:hover 		{color:#6d84b4;}
.addthisevent 							{visibility:hidden;}




</style>

<div class="banner display" style="top:0; margin-bottom:30px">
    <?php
    $event_shortcode = @$dktmSetting['shortcode_event'];
    if ($event_shortcode != "") {
        echo do_shortcode($event_shortcode);
    }
    ?>
</div>
<div class="clear"></div>
<div class="wrapper event-wrapper archive-info">
    <div class="bread-search">
        <aside>
            <?php
            get_dktm_popup_edit('event');
            dktm_breadcrumbs();
            ?>
        </aside>
        <div class="clear"></div>
    </div>
    <div id="primary">
        <?php tribe_events_before_html(); ?>
        <?php tribe_get_view(); ?>
    <?php tribe_events_after_html(); ?>
    </div> <!-- #primary -->
<?php get_sidebar('event'); ?>
    <div class="clear"></div>
</div>
<?php get_footer(); ?>